Release 10.1A: OpenEdge Development:
Programming Interfaces


Running the sample application on UNIX

To verify that your HLC application is installed correctly, run the sample application.

To run the sample application:

  1. Run the buildenv script provided in the $DLC/oebuild/eucapp directory to set up your HLC environment and to set environment variables for the C compiler and linker.
  2. Create a working directory, then go to it.
  3. Copy the example HLC files to your working directory, as follows:
  4. cp $DLC/oebuild/hlc/examples/* . 
    

    Note: Before you develop your own applications, move c and buildenv to a directory that is in your path and move hlc.h to your include file directory or your current working directory.

  5. Enter testhlc on the command line.

The testhlc script creates an empty database, compiles the C source files to create object files in your current directory, links your test HLC module, and runs a small sample application.

After you run hltank.p, verify that the results you obtain are correct by comparing them with the following results, which list the input values for radius, tlength, and depth, and the correct output for tavail:

Figure 18–10 shows the testhlc script on UNIX.

Figure 18–10: UNIX testhlc script

These notes explain the blocks in Figure 18–10:

  1. Sets up your UNIX environment.
  2. Creates and starts an empty database.
  3. Compiles all the .c files necessary to run the sample application.
  1. Links and loads the object files.
  2. Note: This link script is specific to the sample application. For your own application development, use the OEBuild utility to automatically generate a tailored link script.

  1. Starts an OpenEdge session and runs the hldemo.p procedure.

Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095